package com.lucher.tangstore.dao;

import com.lucher.tangstore.po.Menu;

import java.util.List;

public interface MenuMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Menu record);

    int insertSelective(Menu record);

    Menu selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Menu record);

    int updateByPrimaryKey(Menu record);
    
    //自定义接口
    List<Menu> findByList(Menu record);
    List<Menu> findByListForPage(Menu record);
    int findByCount(Menu record);
    
    public List<Menu> queryFirstMenuByRoleid(Integer roleid);
    public List<Menu> querySecondMenuByPid(Menu form);
    public List<Menu> queryMenuByIds(List<Integer> ids);
    public List<Menu> queryRelatedSecondMenu(Menu form);
}